package com.jeeplus.modules.statistics.web;

import com.jeeplus.common.web.Result;
import com.jeeplus.modules.statistics.model.domain.Business;
import com.jeeplus.modules.statistics.model.query.IndexStatisticsQuery;
import com.jeeplus.modules.statistics.model.vo.BusinessRanking;
import com.jeeplus.modules.statistics.model.vo.StatisticsXY;
import com.jeeplus.modules.statistics.model.vo.YearRankingVO;
import com.jeeplus.modules.statistics.service.BusinessService;
import com.jeeplus.modules.statistics.service.IndexService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * ClassName: IndexController
 * Function:  统计分析首页 控制器
 * Date:      2021/2/24 9:52
 *
 * @author hanKongbin
 * version    V1.0
 */
@RestController
@AllArgsConstructor
@RequestMapping("/gx/statistics/business")
public class BusinessController {
    private final BusinessService businessService;

    //@ApiOperation("根据区域下的业务列表")
    @GetMapping("/query")
    public Result<List<Business>> query(@RequestParam String areaNo) {
        return Result.succeed(businessService.findBusiness(areaNo), "获取成功！");
    }

}
